package com.itheima.domain;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/19 19:40
 */
public class Product {
    private int id;
    private String name;
    private double price;
    private String color;
    private String storageMemory;
    private String runningMemory;

    public Product() {
    }

    public Product(int id, String name, double price, String color, String storageMemory, String runningMemory) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.color = color;
        this.storageMemory = storageMemory;
        this.runningMemory = runningMemory;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getStorageMemory() {
        return storageMemory;
    }

    public void setStorageMemory(String storageMemory) {
        this.storageMemory = storageMemory;
    }

    public String getRunningMemory() {
        return runningMemory;
    }

    public void setRunningMemory(String runningMemory) {
        this.runningMemory = runningMemory;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", color='" + color + '\'' +
                ", storageMemory='" + storageMemory + '\'' +
                ", runningMemory='" + runningMemory + '\'' +
                '}';
    }
}
